using System;
using System.Threading;

namespace IoCBattle.Lifestyle.Domain
{

    /// <summary>
    /// You don't want the container to use this guy
    /// </summary>
    public class DangerousIdiot : IAmATotalIdiot
    {
        public void DoWhateverItIsThatYouDo()
        {
            var t = new Thread(() =>
                                   {
                                       //Sleep to hopefully make unit tests have non-repeatable results
                                       Thread.Sleep(100);
                                       throw new Exception("Exception in secondary thread, " + 
                                           "your process is going down!");
                                   });
            t.Start();
        }
    }
}